package com.ruoyi.project.fit.service.impl;

import com.ruoyi.project.fit.domain.FitDept;
import com.ruoyi.project.fit.mapper.FitDeptMapper;
import com.ruoyi.project.fit.service.FitDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FitDeptServiceImpl implements FitDeptService {

    @Autowired
    private FitDeptMapper FitDeptMapper;


    @Override
    public int deleteDeptByIds(Long[] deptIds) {
        return FitDeptMapper.deleteDeptByIds(deptIds);
    }

    @Override
    public int updateDept(FitDept dept) {
        return FitDeptMapper.updateDept(dept);
    }

    @Override
    public int insertDept(FitDept dept) {
        return FitDeptMapper.insertDept(dept);
    }

    @Override
    public List<FitDept> selectDeptList(FitDept dept) {
        return FitDeptMapper.selectDeptList(dept);
    }

    @Override
    public FitDept selectDeptById(Long deptId) {
        return FitDeptMapper.selectDeptById(deptId);
    }
}
